
<!--  / banner  -->
<div class="banner">
	<div class="bannerImg">
		<img class="hidden-xs" src="__CDN__{$ads.image}" alt="" width="100%">
		<img class="visible-xs" src="__CDN__{$ads.image_wap}" alt="" width="100%">
	</div>
<!--	<div class="bannerTxt container white">-->
<!--		<h6>News Center/新闻中心</h6>-->
<!--		<p>拥有一个属于您得高品质网站，从现在开始</p>-->
<!--	</div>-->
</div>
<!--  / banner  -->

<!--  / warpper  -->
<main class="warpper">
	{notempty name="$news_page_list"}
	<div class="newsSec1 padding80">
		<div class="container">
			<div class="comment_title">
				<h6>新闻中心</h6>
				<p>最新行业资讯动态</p>
			</div>
			<ul class="newsSec1_list">
				{foreach $news_page_list as $vo}
				<li>
					<a href="{:url('index/index/newsDetail')}?id={$vo.id}" class="newsSec1_img">
						<div style="background: url(__CDN__{$vo.image}) center/cover no-repeat;"></div>
					</a>
					<a href="{:url('index/index/newsDetail')}?id={$vo.id}" class="newsSec1_txt">
						<h6>{$vo.title}</h6>
						<p>{$vo.desc}</p>
						<div class="time">{$vo.date}</div>
					</a>
				</li>
				{/foreach}
			</ul>
			{$news_page_list->render()}
		</div>
	</div>
	{/notempty}
</main>
<!--  / warpper  --> 


<script>
$(function() {

	

})

$(window).ready(function(){
	$('.headerNav li').eq(4).addClass('on');
})
$(window).load(function(){
	
})
$(window).resize(function(){
	
})

$(window).scroll(function () {
    var h = $(window).scrollTop()
    
    for (var i = 0; i < $('.newsSec1_list li').length; i++) {
    	if (h > $('.newsSec1_list li').eq(i).offset().top - $(window).height()) {
	        $('.newsSec1_list li').eq(i).addClass('on')
	    }
    }
})

</script>
